package cn.hxth.cloud.provider.service;

import cn.hxth.cloud.api.domain.ProductionOrder;
import cn.hxth.cloud.api.domain.Turnoff;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
public interface ProductionService {
    public  Boolean insertProductionOrder(List<ProductionOrder> productionOrders,String mid) throws Exception;
    public  Boolean updateStatus(ProductionOrder productionOrder) ;
    public Boolean startProducing(Long id) ;
    public Boolean doNext(Long id) ;
    public void insertTurnoff(Long id,List<Turnoff> turnoffs) ;
}
